package com.aaa.mapper;

import com.aaa.common.domain.ContractReminder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 宋文森
 * @Date: 2021/02/21/15:45
 * @Description: 合同到期提醒mapper映射接口
 */
public interface ContractReminderMapper extends BaseMapper<ContractReminder> {
    /**
     *租出合同到期提醒相关
     */
     <Page extends IPage<ContractReminder>>Page listRentOutContractReminder(Page page);
    <Page extends IPage<ContractReminder>>Page RentOutContractConditionalQuery(Page page,@Param("selectDate")Integer selectDate,@Param("companyId")Integer companyName);//租出合同条件查询
    List<ContractReminder>  listCompanyName(); //租出合同条件查询时的下拉框选择

    /**
     *租入合同到期提醒相关
     */
    <Page extends IPage<ContractReminder>>Page listRentInContract(Page page);
    <Page extends IPage<ContractReminder>>Page RentInContractConditionalQuery(Page page, @Param("companyName")String companyName,@Param("selectDate")Integer selectDate,@Param("lessor")String lessor);//租入合同条件查询
    List<ContractReminder>  listLessor(); //租入合同的条件查询时的下拉框选择
}
